package cn.melonlib.graphql.exceptions;

public class GraphqlDataException extends Exception{

    private Object data;

    public GraphqlDataException(Object data) {
        this.data = data;
    }

    public GraphqlDataException(String message, Object data) {
        super(message);
        this.data = data;
    }

    public GraphqlDataException(String message, Throwable cause, Object data) {
        super(message, cause);
        this.data = data;
    }

    public GraphqlDataException(Throwable cause, Object data) {
        super(cause);
        this.data = data;
    }

    public GraphqlDataException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, Object data) {
        super(message, cause, enableSuppression, writableStackTrace);
        this.data = data;
    }
}
